package com.ruoyi.project.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预算信息对象 budgets
 * 
 * @author lee
 * @date 2025-03-30
 */
public class Budgets extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预算id */
    private Long budgetId;

    /** 预算名称 */
    @Excel(name = "预算名称")
    private String budgetName;

    /** 预算年度 */
    @Excel(name = "预算年度")
    private Long budgetYear;

    /** 预算金额 */
    @Excel(name = "预算金额")
    private BigDecimal totalBudget;

    /** 批准金额 */
    @Excel(name = "批准金额")
    private BigDecimal approvedAmount;

    /** 剩余金额 */
    @Excel(name = "剩余金额")
    private BigDecimal remainingBudget;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 预算状态 */
    @Excel(name = "预算状态")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public void setBudgetId(Long budgetId) 
    {
        this.budgetId = budgetId;
    }

    public Long getBudgetId() 
    {
        return budgetId;
    }
    public void setBudgetName(String budgetName) 
    {
        this.budgetName = budgetName;
    }

    public String getBudgetName() 
    {
        return budgetName;
    }
    public void setBudgetYear(Long budgetYear) 
    {
        this.budgetYear = budgetYear;
    }

    public Long getBudgetYear() 
    {
        return budgetYear;
    }
    public void setTotalBudget(BigDecimal totalBudget) 
    {
        this.totalBudget = totalBudget;
    }

    public BigDecimal getTotalBudget() 
    {
        return totalBudget;
    }
    public void setApprovedAmount(BigDecimal approvedAmount) 
    {
        this.approvedAmount = approvedAmount;
    }

    public BigDecimal getApprovedAmount() 
    {
        return approvedAmount;
    }
    public void setRemainingBudget(BigDecimal remainingBudget) 
    {
        this.remainingBudget = remainingBudget;
    }

    public BigDecimal getRemainingBudget() 
    {
        return remainingBudget;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("budgetId", getBudgetId())
            .append("budgetName", getBudgetName())
            .append("budgetYear", getBudgetYear())
            .append("totalBudget", getTotalBudget())
            .append("approvedAmount", getApprovedAmount())
            .append("remainingBudget", getRemainingBudget())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("status", getStatus())
            .append("notes", getNotes())
            .toString();
    }
}
